/**
 * 
 */
package org.cuatrovientos.calculator;

/**
 * Calculator  that calculates addition subtraction multiplication and division
 * @author segoitz_guibert
 *
 */
public class Calculator {

	/**
	 * Adds numbers and returns result
	 * @param a
	 * @param b
	 * @return
	 */
	
	public static int add (int a, int b){
		int result = 0;
		result= a + b;
		return result;
	}
	/**
	 * Subtract numbers and returns result
	 * @param a
	 * @param b
	 * @return
	 */
	
	public static int sub (int a, int b){
		int result = 0;
		result= a - b;
		return result;
	}
	
	/**
	 * Multiplies numbers and returns result
	 * @param a
	 * @param b
	 * @return
	 */
	
	public static int mul (int a, int b){
		int result = 0;
		result= a * b;
		return result;
	}	
	
	/**
	 * Divides numbers and return result
	 * @param a
	 * @param b
	 * @return
	 */
	public static int div (int a, int b){
		int result = 0;
		result= a / b;
		return result;
	}
	
	
	public static void main(String[] args) {
		int result =0;
		int x = 660;
		int y = 6;
		
		result = Calculator.add(x,y);
		System.out.println("Result is " + result);
		
		result = Calculator.sub(88,9);
		System.out.println("Result is " + result);
		
		result = Calculator.mul(2,6);
		System.out.println("Result is " + result);
		
		result = Calculator.div(12,2);
		System.out.println("Result is " + result);
		
		
		
		
		

	}

}
